/* ============================================================
   БЛОК QUESTION («Залишились питання? Напиши нам!»)
   Підключення:
   <link rel="stylesheet" type="text/css" href="{{ asset('public/assets\css\frontend\New_website\question.css') }}">
   Потрібен також скрипт:
   <script src="{{ asset('assets\js\website\question.js') }}"></script>

   Брейкпоінти:
   - ПК (за замовчуванням)          > 1440px
   - ноутбук / планшет альбомний    <= 1440px
   - планшет портретний             <= 1024px
   - телефон                        <= 768px
   ============================================================ */

.cases-question {
    position: relative;
    width: 100%;
    max-width: 1920px;
    /* фон з крапковими хвилями та знаками «?» — back.png
       (шлях відносно самого CSS-файлу) */
    background-image: url('../../../image/website/body/question/back.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
    padding: 70px 0 80px;
}

.contact-question {
    position: relative;
    width: 100%;
    max-width: 1920px;
    /* фон з крапковими хвилями та знаками «?» — back.png
       (шлях відносно самого CSS-файлу) */
    background-image: url('../../../image/website/body/question/contact-neuro24-back.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
    padding: 70px 0 80px;
}

/* ---------- контент ---------- */

.question-container {
    position: relative;
    width: 100%;
    max-width: 1060px;
    z-index: 1;
}

.question-title {
    margin: 0 0 40px;
    font-weight: 800;
    font-size: 25px;
    line-height: 31px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #2196FF;
}

/* ---------- форма ---------- */

.question-form { transition: opacity 0.4s ease; }

.question-form.is-hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.question-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 26px;
    row-gap: 22px;
    margin-bottom: 22px;
}

.question-field { display: flex; flex-direction: column; }

.question-field label {
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 13px;
    line-height: 17px;
    color: #587895;
}

.question-field input,
.question-field textarea {
    box-sizing: border-box;
    border-radius: 5px;
    background: #FFFFFF;
    border: 1px solid #9CC2E8;
    color: #1D1F2E;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.question-field input {
    height: 44px;
    padding: 0 14px;
}

.question-field textarea {
    min-height: 116px;
    padding: 12px 14px;
    resize: vertical;
}

.question-field input:focus,
.question-field textarea:focus {
    border-color: #2A90FF;
    box-shadow: 0 0 0 2px rgba(42, 144, 255, 0.15);
}

/* порожнє обов'язкове поле при сабміті */
.question-field input.is-error,
.question-field textarea.is-error {
    border-color: #E0563C;
}

.question-submit {
    margin-top: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 38px;
    border: none;
    border-radius: 22px;
    background: #FFA014;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.question-submit:hover {
    background: #FF9100;
    box-shadow: 0 0 14px rgba(255, 160, 20, 0.4);
}

/* ---------- повідомлення після відправлення ---------- */

.question-success {
    display: none;
    max-width: 640px;
    padding: 38px 28px;
    box-sizing: border-box;
    border-radius: 16px;
    background: rgba(13, 32, 64, 0.6);
    text-align: center;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.question-success.is-shown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.question-success-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 20px;
    border-radius: 8px;
    background: #18B926;
    display: flex;
    align-items: center;
    justify-content: center;
}

.question-success-title {
    margin: 0 0 10px;
    font-weight: 800;
    font-size: 22px;
    line-height: 28px;
    color: #FFFFFF;
}

.question-success-text {
    margin: 0;
    font-weight: 500;
    font-size: 15px;
    line-height: 24px;
    color: rgba(255, 255, 255, 0.65);
}

/* ============================================================
   НОУТБУК / ПЛАНШЕТ АЛЬБОМНИЙ  (<= 1440px)
   ============================================================ */
@media (max-width: 1440px) {

    .cases-question { padding: 56px 32px 64px; }

}

/* ============================================================
   ПЛАНШЕТ ПОРТРЕТНИЙ  (<= 1024px)
   ============================================================ */
@media (max-width: 1024px) {

    .cases-question { padding: 44px 24px 52px; }

    .question-title { font-size: 22px; line-height: 28px; margin-bottom: 28px; }

}

/* ============================================================
   ТЕЛЕФОН  (<= 768px)
   ============================================================ */
@media (max-width: 768px) {

    .cases-question { padding: 32px 16px 40px; }

    .question-title { font-size: 18px; line-height: 24px; }

    /* поля в один стовпець */
    .question-form-row { grid-template-columns: 1fr; row-gap: 16px; margin-bottom: 16px; }

    .question-field input { height: 42px; font-size: 14px; }
    .question-field textarea { min-height: 100px; font-size: 14px; }

    .question-submit {
        margin-top: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .question-success { padding: 28px 16px; }
    .question-success-title { font-size: 19px; }
    .question-success-text { font-size: 14px; line-height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .question-form,
    .question-success { transition: none; }
}